package com.aaa.arouterone.testapplication

import android.app.Application
import com.aaa.arouterone.App
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ApplicationComponent
import javax.inject.Singleton

/**
 * @Description:
 * @Author:  lfc
 * @Email:    iamlifuchang@163.com
 * @CreateTime:     2021/3/30 14:56
 * @UpdateRemark:
 */

@Module
@InstallIn(ApplicationComponent::class)
class TestApplicationInject {

    @Singleton
    @Provides
    fun getApplication(app: Application): App {
        return app as App
    }
}